/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gui;

import bll.blogin;
import dto.dlogin;
import gui.login;
import gui.loginusername;
import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;
//import javax.lang.model.element.Element;
import javax.swing.JOptionPane;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;

/**
 *
 * @author HONGPHUOC
 */
public class main {
      public static void main(String args[]) {
//          JOptionPane.showMessageDialog(null, "bat dau1");
          File f=new File("taiKhoan.xml");
          if(f.isFile()){
             blogin bl=new blogin();
             dlogin dl=new dlogin();
             dl=bl.GetTaiKhoan();
             bl.test(dl);
//              loginusername flogin=new loginusername();
//              flogin.setVisible(true);
             }
          else{
            login flogin=new login();
            flogin.setVisible(true);
          }
      }
    
}
